<?php 
$user=$session->read('User');
$companyid=$session->read("companyid");
$isflag=$action->checkPermissions($user,$companyid);
?>
<div class="right_side_operate_area">
	<div class="right_side_title left">
    	<h2>
		<?php 
			$companyname=$session->read("companyname");
			echo $html->link($companyname,"/companys/showinfosummary/".$companyid);
		?>
    	</h2>
    	<div class='clear'></div>
    </div>
    <div class="right back_btn"><?php echo $html->link("返回","/companys/dormitorylease/".$_SESSION['companyid'])?></div>
    <div class="clear"></div>
</div>

<div class="right_side_scollbar">
    <div class="detail_info_panel">
		<div class="details_item_line">
		
			<div class="details_item_line">  
	            <div class="details_item">
	                <div class="form_left_title left"><?php echo "宿舍位置" ;?>：</div>
	                <div class="form_right_input left"><?php echo $dormitorylease['CompDormitorylease']['location'] ;?></div>
	            </div>
	        </div>
	        
	            <div class="details_item_line">  
		             <div class="details_item">
		                <div class="form_left_title left"><?php echo "宿舍大小" ;?>：</div>
		                <div class="form_right_input left"><?php echo $dormitorylease['CompDormitorylease']['area'] ;?> ㎡</div>
		            </div>
	            </div>
	            
	             <?php 
                	$starttime = date("Y-m-d",strtotime($dormitorylease['CompDormitorylease']['starttime']));
                	$deadline = date("Y-m-d",strtotime($dormitorylease['CompDormitorylease']['deadline']));
		         ?>
	            <div class="details_item_line">  
		            <div class="details_item">
		                <div class="form_left_title left">租赁期限：</div>
		               
		                <div class="form_right_input left"><?php echo $starttime."~".$deadline ;?></div>
	               </div>
	            </div>
	            
	            <div class="details_item_line">  
		              <div class="details_item">
		                <div class="form_left_title left"><?php echo "租金金额" ;?>：</div>
		                <div class="form_right_input left"><?php echo $dormitorylease['CompDormitorylease']['rent'] ;?>￥</div>
		              </div>
	            </div> 
			
		</div>
    </div>
</div>